package com.edu.admin.mapper;

import java.util.List;

import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import com.edu.admin.common.BaseMapper;
import com.edu.admin.entity.SysSchoolRole;
import com.edu.admin.vo.SchoolRoleVo;

/**
 * 学校角色表数据操作接口
 * 
 * @author Wangjiong
 * 
 */
@Mapper
public interface SchoolRoleMapper extends BaseMapper<SysSchoolRole> {

	/**
	 * 获取学校角色列表
	 * 
	 * @param schoolId
	 * @param useType
	 * 
	 * @return List<SchoolRoleVo>
	 */
	List<SchoolRoleVo> getSchoolRoleList(@Param("schoolId") Long schoolId,
										@Param("useType") Integer useType);
	
	/**
	 * 学校角色查重
	 * 
	 * @param schoolId
	 * @param schoolRoleId
	 * @param schoolRoleName
	 * 
	 * @return List<SchoolRoleVo>
	 */
	List<SchoolRoleVo> findSchoolRoleBySchoolRoleName(@Param("schoolId") Long schoolId,
													@Param("schoolRoleId") Long schoolRoleId,
													@Param("schoolRoleName") String schoolRoleName);
	
	

}
